package m1.server.securitymanager;

import m2.component.Component;
import m2.component.iface.ComponentInterface;

public class SecurityManager extends Component {
	
	private CredentialQuery credentialQuery;
	private SecurityAuthorization securityAuthorization;
	
	public SecurityManager(String name) {
		super(name);
		credentialQuery = new CredentialQuery("CredentialQuery");
		securityAuthorization = new SecurityAuthorization("SecurityAuthorization");
		addInterfaceRequis(new ComponentInterface("InterfaceCredentialQuery"), credentialQuery);
		addInterfaceFourni(new ComponentInterface("InterfaceSecurityAuthorization"), securityAuthorization);
	}

	public CredentialQuery getCredentialQuery() {
		return credentialQuery;
	}

	public SecurityAuthorization getSecurityAuthorization() {
		return securityAuthorization;
	}

	
}
